home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gui / gtldv374.lha / GadUtil / Docs / AutoDocs / 14.GU_TextWidth < prev    next >
Text File  |  1996-05-14  |  597b  |  23 lines

  1. gadutil.library/GU_TextWidth                     gadutil.library/GU_TextWidth
  2.  
  3.    NAME
  4.     GU_TextWidth -- Calculate the pixel length of a text string.
  5.  
  6.    SYNOPSIS
  7.     textwidth = GU_TextWidth(string, textattr)
  8.     D0                       A0      A1
  9.  
  10.     ULONG GU_TextWidth(STRPTR, struct TextAttr *);
  11.  
  12.    FUNCTION
  13.     Calculate the length of the text, using the specified font. This
  14.     function will open the required font, if it isn't opened before.
  15.  
  16.    INPUTS
  17.     string - NULL terminated text to calculate width of.
  18.  
  19.     textattr - a filled in TextAttr structure.
  20.  
  21.    RESULT
  22.     textwidth - pixel length of the text
  23.